
package com.eworking.eim.broadcast;

import com.eworking.eim.EIMConstants;
import com.eworking.eim.EIMManager;
import com.eworking.eim.service.EIMChatService;
import com.eworking.eim.util.EIMLog;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class EIMStartServiceReceiver extends BroadcastReceiver {
    
    /** 日志输出标签 */
    private static final String _TAG = EIMManager.class.getSimpleName();
    
    @Override
    public void onReceive(Context context, Intent intent) {
        EIMLog.d(_TAG, "开机时启动服务");
        intent = new Intent(context, EIMChatService.class);
        intent.putExtra(EIMConstants._IS_BOOT_START, true);
        context.startService(intent);
    }
}
